package com.zh.mediaservice.mapper;
import java.util.List;

import com.github.pagehelper.Page;
import com.zh.mediapojo.dto.HospitalPageDto;
import com.zh.mediapojo.entity.Hospital;
import com.zh.mediapojo.vo.HospitalPageVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface HospitalMapper {

    @Select("select * from hospital")
    List<Hospital> getAllHospital();
    Page<HospitalPageVo> page(HospitalPageDto hospitalPageDto);
    @Select("select * from hospital where id=#{id}")
    Hospital getHospitalById(Integer id);

    Page<HospitalPageVo> searchHospital(String keyWords);
}
